home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12398 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  693 b 

  1. Path: ece.rutgers.edu!not-for-mail
  2. From: daksis@ece.rutgers.edu (Randall Thomas)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Newbie: How to put a byte to a000:0001 or more?
  5. Date: 31 Mar 1996 05:05:42 -0500
  6. Organization: Rutgers University
  7. Message-ID: <4jlldm$bc0@ece.rutgers.edu>
  8. References: <4jhur8$995@sanjuan.islandnet.com> <4jihteINNodr@keats.ugrad.cs.ubc.ca>
  9. NNTP-Posting-Host: ece.rutgers.edu
  10.  
  11. In regards to the orignal problem of writing a pixel in mode 13h
  12.  
  13. 1) make a far pointer to 0xa0000
  14.  char far *screen = (char far *) MK_FP(0xa000,0);
  15. 2) call everything as thought this was an array of 64k bytes
  16.  
  17. so screeen[100]=34 will be a valid statement.... 
  18.  
  19. realy simple way to take care of it.
  20.  
  21.